#!/usr/bin/env ruby -w
#--
# Project:      pkgman
# File:         test/test_pkgman.rb
# Revision:     $Id: test_pkgman.rb 192 2007-11-21 04:16:08Z someword $
# Home:         http://code.google.com/p/pkgman/
# Author:       Derek Olsen <someword at gmail dot com>
# Copyright:    (c) 2007 by Derek Olsen
# License:      GNU General Public License v2 
#++

if system "pkginfo -q ZZZpkgman-upgrade-test" 
  system "/usr/bin/pfexec pkgrm -n -a ./admin ZZZpkgman-upgrade-test"
end

system "/usr/bin/pfexec pkgadd -n -a `pwd`/admin -d ./pkgs/ZZZpkgman-upgrade-test-1.0 all"
